package org.example.message.repository;

import org.example.message.entity.Message;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MessageRepository {
    List<Message> messagelist();

    List<Message> getMessageList(@Param("from") String from, @Param("to") String to);
    void addMessage(Message message);

    List<Message> getGroupMessage(String to);
}
